锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲成AV人片在线播放无码,亚洲天堂中文字幕在线,亚洲国产精品成人午夜在线观看http://m.tkk7.com/Vincent-chenxj/category/40350.htmlzh-cnThu, 18 Jun 2009 10:03:14 GMTThu, 18 Jun 2009 10:03:14 GMT60OIDhttp://m.tkk7.com/Vincent-chenxj/archive/2009/06/18/283089.htmlVincent-chenVincent-chenThu, 18 Jun 2009 09:20:00 GMThttp://m.tkk7.com/Vincent-chenxj/archive/2009/06/18/283089.htmlhttp://m.tkk7.com/Vincent-chenxj/comments/283089.htmlhttp://m.tkk7.com/Vincent-chenxj/archive/2009/06/18/283089.html#Feedback0http://m.tkk7.com/Vincent-chenxj/comments/commentRss/283089.htmlhttp://m.tkk7.com/Vincent-chenxj/services/trackbacks/283089.html 鏈嶅姟鍣ㄨ繕鍖呮嫭紜洏鍒╃敤鐜囥?br />


1銆佸湪windows涓婂畨瑁卻nmp錛氭帶鍒墮潰鏉?>娣誨姞/鍒犻櫎紼嬪簭->娣誨姞/鍒犻櫎windows緇勪歡->綆$悊鍜岀洃瑙嗗伐鍏?>璇︾粏淇℃伅->snmp鍗忚
2銆佽浣犱滑鍏堣鐪熶簡(jiǎn)瑙e涔?fàn)PHP銆傚湪鏈哄櫒涓婂畨瑁匒PACHE+PHP+MYSQL鐨勮璁$幆澧冿紝騫剁啛鎮(zhèn)夌幆澧冦傛湁闂闅忔椂鑱旂郴鎴戙?br /> 3銆佷綘鍙互鍦ㄦ湰鏈哄畨瑁卻nmp agent 錛屼箣鍚庤鍙栨湰鏈虹殑鐩稿叧鍙傛暟銆?       

閮ㄥ垎閲嶈OID淇℃伅錛?br /> 1銆佸唴瀛樺ぇ灝?br /> 鏈嶅姟鍣ㄥ唴瀛樼殑OID鏄細(xì).1.3.6.1.2.1.25.2.2.0錛屼笉鍚岀殑鎿嶄綔緋葷粺涔熸槸浣跨敤涓鏍風(fēng)殑OID銆備絾鏄綉緇滆澶囧唴瀛樼殑OID鏍規(guī)嵁璁懼鐨勭敓浜у巶鍟嗕笉鍚屻佸瀷鍙蜂笉鍚岋紝鍏禣ID涔熸槸涓嶅悓鐨勩侰isco鐨勮礬鐢卞櫒鍜屼氦鎹㈡満閮芥槸.1.3.6.1.4.1.9.9.48.1.1.1.5.1銆傚崕涓轟氦鎹㈡満Huawei 6502銆丠uawei 3526銆丠uawei 2403鐨凮ID鏄?1.3.6.1.4.1.2011.6.1.2.1.1.2.0銆傝屽崕涓夌殑H3C E328鍜孒3C E126鐨凮ID鏄?1.3.6.1.4.1.2011.6.1.2.1.1.2.65536銆?br /> 2銆?nbsp;       鍐呭瓨鍒╃敤鐜?br /> 涓庡唴瀛樺ぇ灝忕殑OID鐩稿搴旓紝鍚勮鐩戞帶瀵硅薄鐨勫唴瀛樺埄鐢ㄧ巼鐨凮ID濡備笅錛?br /> 鏈嶅姟鍣ㄥ唴瀛樺埄鐢ㄧ巼鐨凮ID鏄?1.3.6.1.4.1.2021.4.6.0錛涘崕涓轟氦鎹㈡満鐨凮ID鏄?1.3.6.1.4.1.2011.6.1.2.1.1.3.0銆傚崕涓変氦鎹㈡満鐨凮ID鏄?1.3.6.1.4.1.2011.6.1.2.1.1.3.65536銆?br /> 3銆?nbsp;       紜洏澶у皬鍙?qiáng)鍒╃敤鐜?br /> 瀵逛簬鏈嶅姟鍣ㄧ殑紜洏絀洪棿鏉ヨ錛屽洜涓烘瘡涓湇鍔″櫒鐨勭‖鐩樹(shù)釜鏁板拰鐩綍鍒掑垎閮戒笉涓鏍鳳紝鎵浠ヨ鍙栧埌鐨勭洰褰曠┖闂村ぇ灝忓搴旂殑OID渚濇涓猴細(xì).1.3.6.1.2.1.25.2.3.1.5.1 銆?1.3.6.1.2.1.25.2.3.1.5.2絳夛紝騫朵笖鍦ㄨ鍙栨瘡涓洰褰曠┖闂村ぇ灝忕殑鍚屾椂瑕佽鍙栬鐩綍鐨勫悕縐幫紙OID渚濇涓猴細(xì).1.3.6.1.2.1.25.2.3.1.3.1銆?1.3.6.1.2.1.25.2.3.1.3.2絳夛級(jí)浣滀負(fù)璇ョ洃鎺у璞$殑鎻忚堪銆傚叧浜庣洰褰曠┖闂寸殑鍒╃敤鐜囨病鏈夌幇鎴愮殑OID錛岄渶瑕佸厛鑾峰緱鐩綍絀洪棿鐨勪嬌鐢ㄩ噺錛圤ID渚濇涓猴細(xì).1.3.6.1.2.1.25.2.3.1.6.1銆?1.3.6.1.2.1.25.2.3.1.6.2銆佺瓑錛夛紝鐒跺悗閫氳繃浣跨敤閲忎笌絀洪棿鎬婚噺鐨勬瘮杈冨緱鍑哄埄鐢ㄧ巼銆?br /> 4銆?nbsp;       绔彛鐘舵?br /> 瀵逛簬鏈嶅姟鍣ㄦ潵璇達(dá)紝鏈夌殑鏈嶅姟鍣ㄤ負(fù)浜?jiǎn)瀹屾垚澶嶆潅鐨勫姛鑳介渶瑕侀厤緗鍧楃綉鍗★紝鍥犳涔熷氨浼?xì)鏈夊涓鍙i渶瑕佺洃鎺с傚叧浜庣鍙g姸鎬佺殑OID鍒欎緷嬈′負(fù)錛?1.3.6.1.2.1.2.2.1.7.1銆?1.3.6.1.2.1.2.2.1.7.2銆?1.3.6.1.2.1.2.2.1.7.3絳夛紝闄や簡(jiǎn)绔彛鐘舵佺郴緇熻繕闇瑕佺煡閬撹绔彛鐨勫悕縐幫紙OID渚濇涓猴細(xì).1.3.6.1.2.1.2.2.1銆?.1銆?1.3.6.1.2.1.2.2.1.2.2銆?1.3.6.1.2.1.2.2.1.2.3絳夛級(jí)銆傚湪鑾峰彇浜ゆ崲鏈虹殑绔彛鐘舵佹椂棣栧厛鍙皢鐘舵乁P鐨勭鍙d俊鎭褰曚笅鏉ワ紝鍐嶉氳繃姣忎釜绔彛鐨勪綔鐢ㄦ潵閫夋嫨鏄惁鐪熺殑瀵瑰叾榪涜鐩戞帶銆備竴鑸綉緇滅鐞嗗憳鍙渶瑕佺洃鎺ч偅浜涚敤鏉ヤ笌鍏跺畠鐨勭綉緇滆澶囦簰榪炵殑绔彛銆傝繖浜涚鍙g殑OID鏈夌殑鏄繛緇殑錛屾湁鐨勫垯鏄垎鏁g殑錛屼絾閮藉睘浜?1.3.6.1.2.1.2.2.1.7鐨勫垎鏀?br />



CPU Statistics

Load
1 minute Load: .1.3.6.1.4.1.2021.10.1.3.1
5 minute Load: .1.3.6.1.4.1.2021.10.1.3.2
15 minute Load: .1.3.6.1.4.1.2021.10.1.3.3

CPU
percentage of user CPU time: .1.3.6.1.4.1.2021.11.9.0
raw user cpu time: .1.3.6.1.4.1.2021.11.50.0
percentages of system CPU time: .1.3.6.1.4.1.2021.11.10.0
raw system cpu time: .1.3.6.1.4.1.2021.11.52.0
percentages of idle CPU time: .1.3.6.1.4.1.2021.11.11.0
raw idle cpu time: .1.3.6.1.4.1.2021.11.53.0
raw nice cpu time: .1.3.6.1.4.1.2021.11.51.0

Memory Statistics

Total Swap Size: .1.3.6.1.4.1.2021.4.3.0
Available Swap Space: .1.3.6.1.4.1.2021.4.4.0
Total RAM in machine: .1.3.6.1.4.1.2021.4.5.0
Total RAM used: .1.3.6.1.4.1.2021.4.6.0
Total RAM Free: .1.3.6.1.4.1.2021.4.11.0
Total RAM Shared: .1.3.6.1.4.1.2021.4.13.0
Total RAM Buffered: .1.3.6.1.4.1.2021.4.14.0
Total Cached Memory: .1.3.6.1.4.1.2021.4.15.0

Disk Statistics

The snmpd.conf needs to be edited. Add the following (assuming a machine with a single / partition):

disk / 100000 (or)

includeAllDisks 10% for all partitions and disks

The OIDs are as follows

Path where the disk is mounted: .1.3.6.1.4.1.2021.9.1.2.1
Path of the device for the partition: .1.3.6.1.4.1.2021.9.1.3.1
Total size of the disk/partion (kBytes): .1.3.6.1.4.1.2021.9.1.6.1
Available space on the disk: .1.3.6.1.4.1.2021.9.1.7.1
Used space on the disk: .1.3.6.1.4.1.2021.9.1.8.1
Percentage of space used on disk: .1.3.6.1.4.1.2021.9.1.9.1
Percentage of inodes used on disk: .1.3.6.1.4.1.2021.9.1.10.1

]]>
OIDhttp://m.tkk7.com/Vincent-chenxj/archive/2009/06/18/283090.htmlVincent-chenVincent-chenThu, 18 Jun 2009 09:20:00 GMThttp://m.tkk7.com/Vincent-chenxj/archive/2009/06/18/283090.htmlhttp://m.tkk7.com/Vincent-chenxj/comments/283090.htmlhttp://m.tkk7.com/Vincent-chenxj/archive/2009/06/18/283090.html#Feedback0http://m.tkk7.com/Vincent-chenxj/comments/commentRss/283090.htmlhttp://m.tkk7.com/Vincent-chenxj/services/trackbacks/283090.html 鏈嶅姟鍣ㄨ繕鍖呮嫭紜洏鍒╃敤鐜囥?br />


1銆佸湪windows涓婂畨瑁卻nmp錛氭帶鍒墮潰鏉?>娣誨姞/鍒犻櫎紼嬪簭->娣誨姞/鍒犻櫎windows緇勪歡->綆$悊鍜岀洃瑙嗗伐鍏?>璇︾粏淇℃伅->snmp鍗忚
2銆佽浣犱滑鍏堣鐪熶簡(jiǎn)瑙e涔?fàn)PHP銆傚湪鏈哄櫒涓婂畨瑁匒PACHE+PHP+MYSQL鐨勮璁$幆澧冿紝騫剁啛鎮(zhèn)夌幆澧冦傛湁闂闅忔椂鑱旂郴鎴戙?br /> 3銆佷綘鍙互鍦ㄦ湰鏈哄畨瑁卻nmp agent 錛屼箣鍚庤鍙栨湰鏈虹殑鐩稿叧鍙傛暟銆?       

閮ㄥ垎閲嶈OID淇℃伅錛?br /> 1銆佸唴瀛樺ぇ灝?br /> 鏈嶅姟鍣ㄥ唴瀛樼殑OID鏄細(xì).1.3.6.1.2.1.25.2.2.0錛屼笉鍚岀殑鎿嶄綔緋葷粺涔熸槸浣跨敤涓鏍風(fēng)殑OID銆備絾鏄綉緇滆澶囧唴瀛樼殑OID鏍規(guī)嵁璁懼鐨勭敓浜у巶鍟嗕笉鍚屻佸瀷鍙蜂笉鍚岋紝鍏禣ID涔熸槸涓嶅悓鐨勩侰isco鐨勮礬鐢卞櫒鍜屼氦鎹㈡満閮芥槸.1.3.6.1.4.1.9.9.48.1.1.1.5.1銆傚崕涓轟氦鎹㈡満Huawei 6502銆丠uawei 3526銆丠uawei 2403鐨凮ID鏄?1.3.6.1.4.1.2011.6.1.2.1.1.2.0銆傝屽崕涓夌殑H3C E328鍜孒3C E126鐨凮ID鏄?1.3.6.1.4.1.2011.6.1.2.1.1.2.65536銆?br /> 2銆?nbsp;       鍐呭瓨鍒╃敤鐜?br /> 涓庡唴瀛樺ぇ灝忕殑OID鐩稿搴旓紝鍚勮鐩戞帶瀵硅薄鐨勫唴瀛樺埄鐢ㄧ巼鐨凮ID濡備笅錛?br /> 鏈嶅姟鍣ㄥ唴瀛樺埄鐢ㄧ巼鐨凮ID鏄?1.3.6.1.4.1.2021.4.6.0錛涘崕涓轟氦鎹㈡満鐨凮ID鏄?1.3.6.1.4.1.2011.6.1.2.1.1.3.0銆傚崕涓変氦鎹㈡満鐨凮ID鏄?1.3.6.1.4.1.2011.6.1.2.1.1.3.65536銆?br /> 3銆?nbsp;       紜洏澶у皬鍙?qiáng)鍒╃敤鐜?br /> 瀵逛簬鏈嶅姟鍣ㄧ殑紜洏絀洪棿鏉ヨ錛屽洜涓烘瘡涓湇鍔″櫒鐨勭‖鐩樹(shù)釜鏁板拰鐩綍鍒掑垎閮戒笉涓鏍鳳紝鎵浠ヨ鍙栧埌鐨勭洰褰曠┖闂村ぇ灝忓搴旂殑OID渚濇涓猴細(xì).1.3.6.1.2.1.25.2.3.1.5.1 銆?1.3.6.1.2.1.25.2.3.1.5.2絳夛紝騫朵笖鍦ㄨ鍙栨瘡涓洰褰曠┖闂村ぇ灝忕殑鍚屾椂瑕佽鍙栬鐩綍鐨勫悕縐幫紙OID渚濇涓猴細(xì).1.3.6.1.2.1.25.2.3.1.3.1銆?1.3.6.1.2.1.25.2.3.1.3.2絳夛級(jí)浣滀負(fù)璇ョ洃鎺у璞$殑鎻忚堪銆傚叧浜庣洰褰曠┖闂寸殑鍒╃敤鐜囨病鏈夌幇鎴愮殑OID錛岄渶瑕佸厛鑾峰緱鐩綍絀洪棿鐨勪嬌鐢ㄩ噺錛圤ID渚濇涓猴細(xì).1.3.6.1.2.1.25.2.3.1.6.1銆?1.3.6.1.2.1.25.2.3.1.6.2銆佺瓑錛夛紝鐒跺悗閫氳繃浣跨敤閲忎笌絀洪棿鎬婚噺鐨勬瘮杈冨緱鍑哄埄鐢ㄧ巼銆?br /> 4銆?nbsp;       绔彛鐘舵?br /> 瀵逛簬鏈嶅姟鍣ㄦ潵璇達(dá)紝鏈夌殑鏈嶅姟鍣ㄤ負(fù)浜?jiǎn)瀹屾垚澶嶆潅鐨勫姛鑳介渶瑕侀厤緗鍧楃綉鍗★紝鍥犳涔熷氨浼?xì)鏈夊涓鍙i渶瑕佺洃鎺с傚叧浜庣鍙g姸鎬佺殑OID鍒欎緷嬈′負(fù)錛?1.3.6.1.2.1.2.2.1.7.1銆?1.3.6.1.2.1.2.2.1.7.2銆?1.3.6.1.2.1.2.2.1.7.3絳夛紝闄や簡(jiǎn)绔彛鐘舵佺郴緇熻繕闇瑕佺煡閬撹绔彛鐨勫悕縐幫紙OID渚濇涓猴細(xì).1.3.6.1.2.1.2.2.1銆?.1銆?1.3.6.1.2.1.2.2.1.2.2銆?1.3.6.1.2.1.2.2.1.2.3絳夛級(jí)銆傚湪鑾峰彇浜ゆ崲鏈虹殑绔彛鐘舵佹椂棣栧厛鍙皢鐘舵乁P鐨勭鍙d俊鎭褰曚笅鏉ワ紝鍐嶉氳繃姣忎釜绔彛鐨勪綔鐢ㄦ潵閫夋嫨鏄惁鐪熺殑瀵瑰叾榪涜鐩戞帶銆備竴鑸綉緇滅鐞嗗憳鍙渶瑕佺洃鎺ч偅浜涚敤鏉ヤ笌鍏跺畠鐨勭綉緇滆澶囦簰榪炵殑绔彛銆傝繖浜涚鍙g殑OID鏈夌殑鏄繛緇殑錛屾湁鐨勫垯鏄垎鏁g殑錛屼絾閮藉睘浜?1.3.6.1.2.1.2.2.1.7鐨勫垎鏀?br />



CPU Statistics

Load
1 minute Load: .1.3.6.1.4.1.2021.10.1.3.1
5 minute Load: .1.3.6.1.4.1.2021.10.1.3.2
15 minute Load: .1.3.6.1.4.1.2021.10.1.3.3

CPU
percentage of user CPU time: .1.3.6.1.4.1.2021.11.9.0
raw user cpu time: .1.3.6.1.4.1.2021.11.50.0
percentages of system CPU time: .1.3.6.1.4.1.2021.11.10.0
raw system cpu time: .1.3.6.1.4.1.2021.11.52.0
percentages of idle CPU time: .1.3.6.1.4.1.2021.11.11.0
raw idle cpu time: .1.3.6.1.4.1.2021.11.53.0
raw nice cpu time: .1.3.6.1.4.1.2021.11.51.0

Memory Statistics

Total Swap Size: .1.3.6.1.4.1.2021.4.3.0
Available Swap Space: .1.3.6.1.4.1.2021.4.4.0
Total RAM in machine: .1.3.6.1.4.1.2021.4.5.0
Total RAM used: .1.3.6.1.4.1.2021.4.6.0
Total RAM Free: .1.3.6.1.4.1.2021.4.11.0
Total RAM Shared: .1.3.6.1.4.1.2021.4.13.0
Total RAM Buffered: .1.3.6.1.4.1.2021.4.14.0
Total Cached Memory: .1.3.6.1.4.1.2021.4.15.0

Disk Statistics

The snmpd.conf needs to be edited. Add the following (assuming a machine with a single / partition):

disk / 100000 (or)

includeAllDisks 10% for all partitions and disks

The OIDs are as follows

Path where the disk is mounted: .1.3.6.1.4.1.2021.9.1.2.1
Path of the device for the partition: .1.3.6.1.4.1.2021.9.1.3.1
Total size of the disk/partion (kBytes): .1.3.6.1.4.1.2021.9.1.6.1
Available space on the disk: .1.3.6.1.4.1.2021.9.1.7.1
Used space on the disk: .1.3.6.1.4.1.2021.9.1.8.1
Percentage of space used on disk: .1.3.6.1.4.1.2021.9.1.9.1
Percentage of inodes used on disk: .1.3.6.1.4.1.2021.9.1.10.1

]]>
Cisco甯哥敤OIDhttp://m.tkk7.com/Vincent-chenxj/archive/2009/06/18/283080.htmlVincent-chenVincent-chenThu, 18 Jun 2009 08:48:00 GMThttp://m.tkk7.com/Vincent-chenxj/archive/2009/06/18/283080.htmlhttp://m.tkk7.com/Vincent-chenxj/comments/283080.htmlhttp://m.tkk7.com/Vincent-chenxj/archive/2009/06/18/283080.html#Feedback0http://m.tkk7.com/Vincent-chenxj/comments/commentRss/283080.htmlhttp://m.tkk7.com/Vincent-chenxj/services/trackbacks/283080.html
緋葷粺鐘舵佺浉鍏籌細(xì)
### THIS FILE WAS GENERATED BY MIB2SCHEMA
"org"		"1.3"
"dod"		"1.3.6"
"internet"		"1.3.6.1"
"directory"		"1.3.6.1.1"
"mgmt"		"1.3.6.1.2"
"experimental"		"1.3.6.1.3"
"private"		"1.3.6.1.4"
"enterprises"		"1.3.6.1.4.1"
"cisco"		"1.3.6.1.4.1.9"
"ciscoMgmt"		"1.3.6.1.4.1.9.9"
"ciscoEnvMonMIB"		"1.3.6.1.4.1.9.9.13"
"ciscoEnvMonObjects"		"1.3.6.1.4.1.9.9.13.1"
"ciscoEnvMonMIBNotificationEnables"		"1.3.6.1.4.1.9.9.13.2"
"ciscoEnvMonMIBNotificationPrefix"		"1.3.6.1.4.1.9.9.13.3"
"ciscoEnvMonMIBConformance"		"1.3.6.1.4.1.9.9.13.4"
"ciscoEnvMonPresent"		"1.3.6.1.4.1.9.9.13.1.1"
"ciscoEnvMonVoltageStatusTable"		"1.3.6.1.4.1.9.9.13.1.2"
"ciscoEnvMonTemperatureStatusTable"		"1.3.6.1.4.1.9.9.13.1.3"
"ciscoEnvMonFanStatusTable"		"1.3.6.1.4.1.9.9.13.1.4"
"ciscoEnvMonSupplyStatusTable"		"1.3.6.1.4.1.9.9.13.1.5"
"ciscoEnvMonAlarmContacts"		"1.3.6.1.4.1.9.9.13.1.6"
"ciscoEnvMonVoltageStatusEntry"		"1.3.6.1.4.1.9.9.13.1.2.1"
"ciscoEnvMonVoltageStatusIndex"		"1.3.6.1.4.1.9.9.13.1.2.1.1"
"ciscoEnvMonVoltageStatusDescr"		"1.3.6.1.4.1.9.9.13.1.2.1.2"
"ciscoEnvMonVoltageStatusValue"		"1.3.6.1.4.1.9.9.13.1.2.1.3"
"ciscoEnvMonVoltageThresholdLow"		"1.3.6.1.4.1.9.9.13.1.2.1.4"
"ciscoEnvMonVoltageThresholdHigh"		"1.3.6.1.4.1.9.9.13.1.2.1.5"
"ciscoEnvMonVoltageLastShutdown"		"1.3.6.1.4.1.9.9.13.1.2.1.6"
"ciscoEnvMonVoltageState"		"1.3.6.1.4.1.9.9.13.1.2.1.7"
"ciscoEnvMonTemperatureStatusEntry"		"1.3.6.1.4.1.9.9.13.1.3.1"
"ciscoEnvMonTemperatureStatusIndex"		"1.3.6.1.4.1.9.9.13.1.3.1.1"
"ciscoEnvMonTemperatureStatusDescr"		"1.3.6.1.4.1.9.9.13.1.3.1.2"
"ciscoEnvMonTemperatureStatusValue"		"1.3.6.1.4.1.9.9.13.1.3.1.3"
"ciscoEnvMonTemperatureThreshold"		"1.3.6.1.4.1.9.9.13.1.3.1.4"
"ciscoEnvMonTemperatureLastShutdown"		"1.3.6.1.4.1.9.9.13.1.3.1.5"
"ciscoEnvMonTemperatureState"		"1.3.6.1.4.1.9.9.13.1.3.1.6"
"ciscoEnvMonFanStatusEntry"		"1.3.6.1.4.1.9.9.13.1.4.1"
"ciscoEnvMonFanStatusIndex"		"1.3.6.1.4.1.9.9.13.1.4.1.1"
"ciscoEnvMonFanStatusDescr"		"1.3.6.1.4.1.9.9.13.1.4.1.2"
"ciscoEnvMonFanState"		"1.3.6.1.4.1.9.9.13.1.4.1.3"
"ciscoEnvMonSupplyStatusEntry"		"1.3.6.1.4.1.9.9.13.1.5.1"
"ciscoEnvMonSupplyStatusIndex"		"1.3.6.1.4.1.9.9.13.1.5.1.1"
"ciscoEnvMonSupplyStatusDescr"		"1.3.6.1.4.1.9.9.13.1.5.1.2"
"ciscoEnvMonSupplyState"		"1.3.6.1.4.1.9.9.13.1.5.1.3"
"ciscoEnvMonSupplySource"		"1.3.6.1.4.1.9.9.13.1.5.1.4"
"ciscoEnvMonEnableShutdownNotification"		"1.3.6.1.4.1.9.9.13.2.1"
"ciscoEnvMonEnableVoltageNotification"		"1.3.6.1.4.1.9.9.13.2.2"
"ciscoEnvMonEnableTemperatureNotification"		"1.3.6.1.4.1.9.9.13.2.3"
"ciscoEnvMonEnableFanNotification"		"1.3.6.1.4.1.9.9.13.2.4"
"ciscoEnvMonEnableRedundantSupplyNotification"		"1.3.6.1.4.1.9.9.13.2.5"
"ciscoEnvMonEnableStatChangeNotif"		"1.3.6.1.4.1.9.9.13.2.6"
"ciscoEnvMonMIBNotifications"		"1.3.6.1.4.1.9.9.13.3"
"ciscoEnvMonMIBCompliances"		"1.3.6.1.4.1.9.9.13.4.1"
"ciscoEnvMonMIBGroups"		"1.3.6.1.4.1.9.9.13.4.2"
"ciscoEnvMonMIBCompliance"		"1.3.6.1.4.1.9.9.13.4.1.1"
"ciscoEnvMonMIBComplianceRev1"		"1.3.6.1.4.1.9.9.13.4.1.2"
"ciscoEnvMonMIBGroup"		"1.3.6.1.4.1.9.9.13.4.2.1"
"ciscoEnvMonMIBGroupRev"		"1.3.6.1.4.1.9.9.13.4.2.2"
"ciscoEnvMonEnableStatChangeGroup"		"1.3.6.1.4.1.9.9.13.4.2.3"
"ciscoEnvMonMIBNotifGroup"		"1.3.6.1.4.1.9.9.13.4.2.4"
"ciscoEnvMonStatChangeNotifGroup"		"1.3.6.1.4.1.9.9.13.4.2.5"
"ciscoEnvMonMIBMiscNotifGroup"		"1.3.6.1.4.1.9.9.13.4.2.6"
緋葷粺鍐呭瓨?shù)俊鎭Q?/pre>
### THIS FILE WAS GENERATED BY MIB2SCHEMA
"org"		"1.3"
"dod"		"1.3.6"
"internet"		"1.3.6.1"
"directory"		"1.3.6.1.1"
"mgmt"		"1.3.6.1.2"
"experimental"		"1.3.6.1.3"
"private"		"1.3.6.1.4"
"enterprises"		"1.3.6.1.4.1"
"cisco"		"1.3.6.1.4.1.9"
"ciscoMgmt"		"1.3.6.1.4.1.9.9"
"ciscoMemoryPoolMIB"		"1.3.6.1.4.1.9.9.48"
"ciscoMemoryPoolObjects"		"1.3.6.1.4.1.9.9.48.1"
"ciscoMemoryPoolNotifications"		"1.3.6.1.4.1.9.9.48.2"
"ciscoMemoryPoolConformance"		"1.3.6.1.4.1.9.9.48.3"
"ciscoMemoryPoolTable"		"1.3.6.1.4.1.9.9.48.1.1"
"ciscoMemoryPoolUtilizationTable"		"1.3.6.1.4.1.9.9.48.1.2"
"ciscoMemoryPoolEntry"		"1.3.6.1.4.1.9.9.48.1.1.1"
"ciscoMemoryPoolType"		"1.3.6.1.4.1.9.9.48.1.1.1.1"
"ciscoMemoryPoolName"		"1.3.6.1.4.1.9.9.48.1.1.1.2"
"ciscoMemoryPoolAlternate"		"1.3.6.1.4.1.9.9.48.1.1.1.3"
"ciscoMemoryPoolValid"		"1.3.6.1.4.1.9.9.48.1.1.1.4"
"ciscoMemoryPoolUsed"		"1.3.6.1.4.1.9.9.48.1.1.1.5"
"ciscoMemoryPoolFree"		"1.3.6.1.4.1.9.9.48.1.1.1.6"
"ciscoMemoryPoolLargestFree"		"1.3.6.1.4.1.9.9.48.1.1.1.7"
"ciscoMemoryPoolUtilizationEntry"		"1.3.6.1.4.1.9.9.48.1.2.1"
"ciscoMemoryPoolUtilization1Min"		"1.3.6.1.4.1.9.9.48.1.2.1.1"
"ciscoMemoryPoolUtilization5Min"		"1.3.6.1.4.1.9.9.48.1.2.1.2"
"ciscoMemoryPoolUtilization10Min"		"1.3.6.1.4.1.9.9.48.1.2.1.3"
"ciscoMemoryPoolCompliances"		"1.3.6.1.4.1.9.9.48.3.1"
"ciscoMemoryPoolGroups"		"1.3.6.1.4.1.9.9.48.3.2"
"ciscoMemoryPoolCompliance"		"1.3.6.1.4.1.9.9.48.3.1.1"
"ciscoMemoryPoolComplianceRev1"		"1.3.6.1.4.1.9.9.48.3.1.2"
"ciscoMemoryPoolGroup"		"1.3.6.1.4.1.9.9.48.3.2.1"
"ciscoMemoryPoolUtilizationGroup"		"1.3.6.1.4.1.9.9.48.3.2.2"




]]>Communicating with SNMP using C# - The Very Beginning http://m.tkk7.com/Vincent-chenxj/archive/2009/06/18/283059.htmlVincent-chenVincent-chenThu, 18 Jun 2009 07:30:00 GMThttp://m.tkk7.com/Vincent-chenxj/archive/2009/06/18/283059.htmlhttp://m.tkk7.com/Vincent-chenxj/comments/283059.htmlhttp://m.tkk7.com/Vincent-chenxj/archive/2009/06/18/283059.html#Feedback0http://m.tkk7.com/Vincent-chenxj/comments/commentRss/283059.htmlhttp://m.tkk7.com/Vincent-chenxj/services/trackbacks/283059.html

Who Should Read This

  1. You want to program SNMP with C# but have no idea for beginning.
  2. You've googled for a while, but don't get a simple working example.
  3. What you're looking for, is just a simple requirement to get a status value from a device through SNMP.

Introduction
My purpose is to get an uint value from a temperature sensor through SNMP. This is a very simple requirement, and I don't want to understand the whole detail of SNMP protocol. In JAVA, there's lot of open source resources for SNMP programming, for example, SNMP4j. How ever, I found no simple guidance for C# SNMP programming. If you have the same problem, you can have following example to start your way toward SNMP.

Pre-requirement
  1. C# Programming Basics
  2. A working SNMP host to communicate with. For example, a temperature sensor, a networked printer or a router with SNMP functions.
Sample SNMP Class
Firstly, you have to add a reference to OLEPRNLIB. You can find it from "Add reference" -> "COM". The path of the dll is located at C:\Windows\System32 by Default.

Here is a sample SNMP Class:

using System;
using System.Collections.Generic;
using System.Text;
using OLEPRNLib;

namespace MrFu
{
public class SimpleSnmp
{
private String hostIp;
private String oid;
private String communityString;

int retries = 1;
int timeout = 3000;

SNMP snmp = new SNMP();

public SimpleSnmp(String hostIp, String communityString, String oid)
{
this.hostIp = hostIp;
this.communityString = communityString;
this.oid = oid;

try
{
snmp.Open(this.hostIp, this.communityString, this.retries, this.timeout);
}
catch (Exception ex) {
Console.WriteLine(ex.Message);
}

}

public String getValue() {
try
{
uint result = snmp.GetAsByte(this.oid);
return result.ToString();
}
catch (Exception ex) {
Console.WriteLine(ex.Message);
return null;
}
}
}
}


Description for the Code

First line you need to look at is:
snmp.Open(this.hostIp, this.communityString, this.retries, this.timeout);
where the "hostIp" is the IP address of the target, of course,

the "communityString" is "public" by default for most SNMP device. If you changed it on device configuration, remember to modify it.

the "retries" and "timeout" indicate how many times the system should retry if connection failed over the milliseconds given by "timeout".

And, That's All to Connect to A Device Through SNMP. COOL!

Second line you might want to know is:
uint result = snmp.GetAsByte(this.oid);
That's the basic way to get the status or value from your host device. You can convert it into String or any thing you like.

To explain in a simple way, the "oid" is the unique id for some status on the device. You can obtain the correct oid from your device manual. For example, the oid of my temperature sensor is:
".1.3.6.1.4.1.3854.1.2.2.1.16.1.3.0"
So you should be able to find some string looks like that from your device suppliers or documents.

For more detailed description of SNMP protocol, you can look into wikipedia.

That's all. So easy, and you can have a first shot of SNMP programming with C# now.


Conclusin
This is quiet a easy way to have a quick look of SNMP progamming with C#. Surely, the detailed packet parsing or other SNMP functions are NOT shown in this post. But that's all I need to solve my problem. And I hope this post can help you, too.

]]>
主站蜘蛛池模板: 美女18毛片免费视频| 亚洲av产在线精品亚洲第一站| 色欲色欲天天天www亚洲伊| 一二三四免费观看在线视频中文版| 亚洲最大视频网站| 亚洲精品视频在线观看免费| 亚洲高清在线mv| 久久精品免费全国观看国产| 亚洲最大的成人网| 日本一道一区二区免费看 | 国产免费久久精品99久久| 亚洲成A∨人片天堂网无码| 视频一区在线免费观看| 亚洲中久无码永久在线观看同| a级男女仿爱免费视频| 亚洲制服中文字幕第一区| 在线观看免费人成视频色9| 亚洲精品无码成人| 亚洲精品岛国片在线观看| 精品视频一区二区三区免费| 亚洲色成人网一二三区| 麻豆国产入口在线观看免费| 成人免费观看男女羞羞视频| 亚洲AV无码一区二区三区系列| 亚洲免费观看网站| 国产一区二区三区亚洲综合| 国产成人无码综合亚洲日韩| 国产福利视精品永久免费| 亚洲国产精品无码久久| 国产亚洲自拍一区| 97人妻无码一区二区精品免费| 亚洲a∨国产av综合av下载 | 一级特黄录像免费播放肥| 91情国产l精品国产亚洲区| 国产成人综合久久精品免费| 中文精品人人永久免费| 国产成人精品日本亚洲直接| 久久青青草原亚洲av无码| 日本片免费观看一区二区| 色哟哟国产精品免费观看| 亚洲午夜久久久久久尤物|