在python子进程中snmpwalk

时间:2015-11-12 14:34:16

标签: python python-2.7 net-snmp

它适用于我的# ---------------------------------------------------------------------- # Password protect staging server # Use one .htaccess file across multiple environments # (e.g. local, dev, staging, production) # but only password protect a specific environment. # ---------------------------------------------------------------------- SetEnvIf Host staging.domain.com passreq AuthType Basic AuthName "Password Required" AuthUserFile /full/path/to/.htpasswd Require valid-user Order allow,deny Allow from all Deny from env=passreq Satisfy any shell:

Bash

但是当我尝试通过python $ snmpwalk -V NET-SNMP version: 5.7.2.1 执行完全相同的命令时:

subprocess

任何想法在这里有什么问题?

0 个答案:

没有答案