文档章节

snmpset (1)

开源中国首席带头大哥
 开源中国首席带头大哥
发布于 2016/12/08 12:10
字数 626
阅读 29
收藏 0

snmpset (1)

名称

snmpset - communicates with a network entity using SNMP SET requests

用法概要

[root@unfvo ~]# snmpset
No hostname specified.
USAGE: snmpset [OPTIONS] AGENT OID TYPE VALUE [OID TYPE VALUE]...

  Version:  5.5
  Web:      http://www.net-snmp.org/
  Email:    net-snmp-coders@lists.sourceforge.net

OPTIONS:
  -h, --help		display this help message
  -H			display configuration file directives understood
  -v 1|2c|3		specifies SNMP version to use
  -V, --version		display package version number
SNMP Version 1 or 2c specific
  -c COMMUNITY		set the community string
SNMP Version 3 specific
  -a PROTOCOL		set authentication protocol (MD5|SHA)
  -A PASSPHRASE		set authentication protocol pass phrase
  -e ENGINE-ID		set security engine ID (e.g. 800000020109840301)
  -E ENGINE-ID		set context engine ID (e.g. 800000020109840301)
  -l LEVEL		set security level (noAuthNoPriv|authNoPriv|authPriv)
  -n CONTEXT		set context name (e.g. bridge1)
  -u USER-NAME		set security name (e.g. bert)
  -x PROTOCOL		set privacy protocol (DES|AES)
  -X PASSPHRASE		set privacy protocol pass phrase
  -Z BOOTS,TIME		set destination engine boots/time
General communication options
  -r RETRIES		set the number of retries
  -t TIMEOUT		set the request timeout (in seconds)
Debugging
  -d			dump input/output packets in hexadecimal
  -D TOKEN[,...]	turn on debugging output for the specified TOKENs
			   (ALL gives extremely verbose debugging output)
General options
  -m MIB[:...]		load given list of MIBs (ALL loads everything)
  -M DIR[:...]		look in given list of directories for MIBs
  -P MIBOPTS		Toggle various defaults controlling MIB parsing:
			  u:  allow the use of underlines in MIB symbols
			  c:  disallow the use of "--" to terminate comments
			  d:  save the DESCRIPTIONs of the MIB objects
			  e:  disable errors when MIB symbols conflict
			  w:  enable warnings when MIB symbols conflict
			  W:  enable detailed warnings when MIB symbols conflict
			  R:  replace MIB symbols from latest module
  -O OUTOPTS		Toggle various defaults controlling output display:
			  0:  print leading 0 for single-digit hex characters
			  a:  print all strings in ascii format
			  b:  do not break OID indexes down
			  e:  print enums numerically
			  E:  escape quotes in string indices
			  f:  print full OIDs on output
			  n:  print OIDs numerically
			  q:  quick print for easier parsing
			  Q:  quick print with equal-signs
			  s:  print only last symbolic element of OID
			  S:  print MIB module-id plus last element
			  t:  print timeticks unparsed as numeric integers
			  T:  print human-readable text along with hex strings
			  u:  print OIDs using UCD-style prefix suppression
			  U:  don't print units
			  v:  print values only (not OID = value)
			  x:  print all strings in hex format
			  X:  extended index format
  -I INOPTS		Toggle various defaults controlling input parsing:
			  b:  do best/regex matching to find a MIB node
			  h:  don't apply DISPLAY-HINTs
			  r:  do not check values for range/type legality
			  R:  do random access to OID labels
			  u:  top-level OIDs must have '.' prefix (UCD-style)
			  s SUFFIX:  Append all textual OIDs with SUFFIX before parsing
			  S PREFIX:  Prepend all textual OIDs with PREFIX before parsing
  -L LOGOPTS		Toggle various defaults controlling logging:
			  e:           log to standard error
			  o:           log to standard output
			  n:           don't log at all
			  f file:      log to the specified file
			  s facility:  log to syslog (via the specified facility)

			  (variants)
			  [EON] pri:   log to standard error, output or /dev/null for level 'pri' and above
			  [EON] p1-p2: log to standard error, output or /dev/null for levels 'p1' to 'p2'
			  [FS] pri token:    log to file/syslog for level 'pri' and above
			  [FS] p1-p2 token:  log to file/syslog for levels 'p1' to 'p2'
  -C APPOPTS		Set various application specific behaviours:
			  q:  don't print results on success

  TYPE: one of i, u, t, a, o, s, x, d, b
	i: INTEGER, u: unsigned INTEGER, t: TIMETICKS, a: IPADDRESS
	o: OBJID, s: STRING, x: HEX STRING, d: DECIMAL STRING, b: BITS
	U: unsigned int64, I: signed int64, F: float, D: double
[root@unfvo ~]#

© 著作权归作者所有

共有 人打赏支持
开源中国首席带头大哥
粉丝 13
博文 136
码字总数 88446
作品 0
南京
程序员
私信 提问
Net-snmp使用snmpset 如何设置agent 中的count32 类型的数据?

Net-snmp使用snmpset 如何设置agent 中的count32 类型的数据? 使用snmpset -v2c -c private localhost Type 12345 这里的Type应该是什么?...

bridgetisn
2014/03/08
863
1
uCLinux上UCD-SNMP Agent的实现

[转载请注明出处,作者:张洪耿,patrick_zhg@hotmail.com] 讨论采用开放源码的UCD-SNMP 4.2.1软件包开发自己的SNMP Agent,不涉及SNMP协议包的组包、解析等问题。本文从以下部分进行介绍: ...

澈明
2012/03/27
0
0
netsnmp 用mfd创建模板后,可以get不能set 

snmpget -v 2c -c secret 10.170.16.21 NTCIP1202-2004::phaseConcurrency.3 NTCIP1202-2004::phaseConcurrency.3 = STRING: "Hello world" snmpset -v 2c -c secret 10.170.16.21 NTCIP1202......

xdstu
2014/10/03
879
5
导入mib时报错,请教高手该如何解决?

Fri Jan 22 10:47:46 CST 2016 [INFO] Parsing MIB file C:\Program Files (x86)\OpenNMS\share\mibs\pending\mmblade.mib Fri Jan 22 10:47:48 CST 2016 [ERROR] Problem found when compil......

周祯烜
2016/01/25
339
2
一次对SNMP服务的渗透测试

Hacking SNMP Service - The Post Exploitation :Attacking Network - Network Pentesting原文地址: http://www.websecgeeks.com/2017/ ... ce-part-1-post.html http://www.websecgeeks.co......

i春秋学院
2017/07/19
226
0

没有更多内容

加载失败,请刷新页面

加载更多

20181213 上课截图

小丑鱼00
12分钟前
0
0
nginx+php-fpm配置后页面显示空白的解决方法以及用nginx和php-fpm解决“502 Bad Gateway”问题

https://stackoverflow.com/questions/15423500/nginx-showing-blank-php-pages For reference, I am attaching my location block for catching files with the .php extension: location ~......

Yao--靠自己
20分钟前
1
0
mac 没声音

somehow不时就会出现这种情况。之前都得重启。 其实可以直接在terminal里打以下命令: sudo kextunload /System/Library/Extensions/AppleHDA.kext sudo kextload /System/Library/Extension...

dubox
35分钟前
1
0
看完让你彻底搞懂Websocket原理

作者:Ovear 链接:https://www.zhihu.com/question/20215561/answer/40316953 来源:知乎 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。 额。。最高票答案没答到点...

时刻在奔跑
50分钟前
2
0
Spring Cloud Stream消费失败后的处理策略(一):自动重试

之前写了几篇关于Spring Cloud Stream使用中的常见问题,比如: 如何处理消息重复消费 如何消费自己生产的消息 下面几天就集中来详细聊聊,当消息消费失败之后该如何处理的几种方式。不过不论...

程序猿DD
52分钟前
0
0

没有更多内容

加载失败,请刷新页面

加载更多

返回顶部
顶部