| SNMP :: פשוטה קיצורי דרך בעת שימוש ב- SNMP |
הורד עכשיו |
SNMP :: פשוטה דירוג וסיכום
- רישיון:
- Perl Artistic License
- אתר האינטרנט של המוציא לאור:
- http://search.cpan.org/~ian/
SNMP :: פשוטה תגים
SNMP :: פשוטה תיאור
קיצורי דרך בעת שימוש ב- SNMP SNMP :: פשוט הוא מודול Perl המספק קיצורי דרך בעת ביצוע משימות מידע אחזור חוזרת עם snmp.instead של זה: השתמש SNMP; $ vars = חדש SNMP :: Varlist (, , ,); שלי ($ light_status, $ light_color, $ light_desc) = $ s-> getnext ($ vars); Die $ S -> {errorstr} אם $ s -> {eRRORSTR}; בעוד ($ s -> {eRRORSTR} ו $ Vars -> תג EQ "prtconsoleontime") {push @ {$ נתונים {light}}, {status => ($ light_status? 0: 1), צבע => SNMP :: MAPENUM ($$ Vars -> תג, $ light_color), תיאור => $ light_desc,}; ($ light_status, $ light_color, $ light_desc) = $ s-> getnext ($ vars); } ... באפשרותך לעשות זאת: השתמש ב- SNMP :: פשוט; $ $ {lights} = $ s-> get_named_table (מצב => 'prtconsolecolor', color => 'prtconsolecolor', name => 'prtconsoledescription',); synopsis להשתמש SNMP :: פשוט; $ NAME = $ S-> קבל ('sysname'); # כמו Sysname.0 $ מיקום = $ s-> קבל ('syslocation'); @ array = $ s-> get_list ('hrprinterstatus'); $ arrayref = $ s-> get_list ('hrprinterstatus'); @list_of_lists = $ s-> get_table (QW (prtconsoleontime prtconsolecolor prtconsoledescription)); @list_of_hashes = $ s-> get_named_table (שם => 'prtinputscription', מדיה => 'prtinputmedian', Status => 'prtinputcurrentlevel', מקס => 'prtinputmaxcapacity',); דרישות: · פרל
SNMP :: פשוטה תוכנה קשורה