diff --git a/scripts/aclshow b/scripts/aclshow index e89569a20b94..f1e1ef96bf70 100755 --- a/scripts/aclshow +++ b/scripts/aclshow @@ -61,7 +61,7 @@ class AclStat(object): self.table_list = tables.split(",") # Set up db connections - self.db = swsssdk.SonicV2Connector() + self.db = swsssdk.SonicV2Connector(host="127.0.0.1") self.db.connect(self.db.APPL_DB) self.db.connect(self.db.COUNTERS_DB) diff --git a/scripts/portstat b/scripts/portstat index 9a29fa14e514..2345fcd8238e 100755 --- a/scripts/portstat +++ b/scripts/portstat @@ -55,7 +55,7 @@ PORT_STATUS_FIELD = "oper_status" class Portstat(object): def __init__(self): - self.db = swsssdk.SonicV2Connector() + self.db = swsssdk.SonicV2Connector(host='127.0.0.1') self.db.connect(self.db.COUNTERS_DB) self.db.connect(self.db.APPL_DB) @@ -346,9 +346,6 @@ Examples: wait_time_in_seconds = args.period print_all = args.all - if not os.geteuid() == 0: - raise RuntimeError("must be root to run") - if tag_name is not None: cnstat_file = uid + "-" + tag_name else: diff --git a/scripts/teamshow b/scripts/teamshow index 0583c2b419c5..6c988a7c3ba2 100755 --- a/scripts/teamshow +++ b/scripts/teamshow @@ -39,7 +39,7 @@ class Teamshow(object): self.summary = {} self.err = None # setup db connection - self.db = swsssdk.SonicV2Connector() + self.db = swsssdk.SonicV2Connector(host="127.0.0.1") self.db.connect(self.db.APPL_DB) def get_portchannel_names(self):