Command Line interface (CLI)

learn more… | top users | synonyms (2)

1
vote
1answer
34 views

The best approach to access server in DMZ (outside domain) from LAN via command line (MS Windows)

I have two servers: SVR1 (Windows Server 2008) in LAN - part of domain SVR2 (Windows Server 2008) in DMZ - workgroup I need to access SVR2 from SVR1 via command line batch - copy some files and ...
0
votes
1answer
28 views

change in Registry settings does not reflect for the corresponding settings in GUI in windows 2003 server

I have updated registry value for Software Restriction Policies/Security Levels. However, changes were not reflecting in the GUI. I have restarted the server still no effect. below command is used to ...
-1
votes
2answers
25 views

How to run batch file without a window in ONE file

I know how to run batch files without a window thanks to this question here: Run a .bat file in a scheduled task without a window. The first answer is the one I am using. It states that to run a ...
0
votes
2answers
31 views

Using find to exclude a directory and tar up everything else in a directory

I have following in a directory: dir1 dir2 file1 file2 I want to tar up everything except dir1 When I do: find . -path '*dir1*' -prune -o -print I don't see dir1 in the output ( as expected) ...
0
votes
0answers
88 views

Problems with Juniper Pinging Local System IP Addresses

I want to send a signal from "local system A" to an untrusted port on my SRX240(ge-0/0/0). I connected "local system A" to the SRX240 ge-0/0/0 port with an ethernet cable. To make sure the connection ...
0
votes
0answers
38 views

Linux: getting detailed stats for a single HTTP request? [migrated]

I'm writing a script to determine the performance of a service from a client's point of view. To that effect, I need to be able to determine a few stats for each HTTP request like: DNS lookup time ...
1
vote
1answer
40 views

Will systeminfo's “OS Name:” line distinguish between Windows 2003 and 2003 R2?

First, please verify visually that you have a 2003 R2 installation by opening Control Panel\System Properties and checking that R2 is shown like this: Alternatively, R2 should be mentioned on the ...
-3
votes
1answer
37 views

How does “yum info” work? [closed]

I want to know how the yum info command works. I know yum info will display information about the installed package, but I really want to know which file it reads for that information. Whether it's ...
0
votes
2answers
18 views

Replace date in epoch (seconds) format to normal in a log file

I am on a ubuntu machine trying to read from log files and found the logs contain date and time in epoch format(seconds). How can I convert these dates in numbers into any readable format from command ...
0
votes
0answers
42 views

Change user password on other domain command line

I'd like to change user's password using cmd.exe on domain account. I tried net user user_name * /domain but it doesn't work, because my user is on another domain. How can I specify, to which ...
-1
votes
1answer
52 views

How to display free disk space on cifs mount on linux command line? [closed]

In case there's any distinction between OS and shell necessary, I want to run the command on Ubuntu 14.04 with Linux 3.13 in GNU bash 4.3.11. mount.cifs's version is 6.0 using smb2 protocol. After ...
3
votes
8answers
262 views

Ping stops responding after the first line

I have a problem with the PING command on Windows 8.1. During a ping, the command returns no further output after sending the first ping request. For example: ping 192.168.1.200 Pinging ...
1
vote
1answer
64 views

Simple backup tape wiping, from linux shell?

I have a pile of old unencrypted backup tapes I want to discard, and I'm looking for a really simple and free erase method. I have previously used the following method to zero hard drives on linux. ...
0
votes
0answers
27 views

How to modify environment variable in Apache for CLI

I have a Zend framework 2 application which needs to be configured through an environment variable. On my local host (Windows) for example I set APPLICATION_ENV = local and with ...
0
votes
0answers
18 views

When changing the Win display lang, will builtin CLI tools params / stdout|stderr messages also change?

I need to write a CMD script (other shells are not allowed / available) that will execute on multiple servers with different display languages. When looking at an Windows built in tool, such as ...
0
votes
1answer
62 views

IBM AMM BladeCenter 39Y9661 problems

i'm working on a bladecenter S and i try to update my amm with putty via COM port, but when i want to see my version it doesn't work i use like every time this command: env -T system:mm[1] info ...
-4
votes
1answer
99 views

“ifconfig” command not found and networking tools package information needed [closed]

I have 2 questions : 1) "ifconfig" command is not found in centos 7, i tried to find in /sbin, there also command is not available. Doesn't this essential tool not included in minimal installation ( ...
1
vote
1answer
40 views

AWS EB Change db name via DBInstanceIdentifier

I'm using ElasticBeanstalk for many apps and many environments (not that many but just making a point here). I'd like to have my databases (RDS instances) have human-readable names. When I change a ...
3
votes
1answer
96 views

Troubleshooting DNS issue

I am trying to troubleshoot a DNS issue I am currently having with a new project host on an AWS EC2 instance. It is a brand new domain, and I have already updated the nameservers on the registrar ...
1
vote
2answers
60 views

Kill all currently running cron jobs

For some reason my cron job scripts aren't exiting cleanly and they're backing up my server. There are currently a couple hundred processes running for one of my users. I can use the following command ...
2
votes
3answers
246 views

How can I deploy template-based VM from Linux?

We are trying to provide our Linux engineers with a CLI to deploy VMWare vSphere VMs using templates. The vSphere CLI looks promising but the documentation doesn't mention templates. Does anyone ...
0
votes
2answers
68 views

How to check the connection to remote server with a digital certificate (client authentication)

I got a digital certificate with extensions for server and client authentication and a private key. Now I want to connect to a remote server (REST web services) which should accept my requests ...
-1
votes
1answer
30 views

tail -n equivalent for X last chars of a file?

I'm searching a way to display X last chars of afile. I've a big log file with everything on 1 line... I'm just interested for the last chars of this log. I didn't found anything to solve my ...
0
votes
0answers
45 views

Checkpoint Firewall - R75.3 - how to view time of recent CLI change

I'm trying to figure out when a colleague processed a change in the last couple of days. Very in experienced in expert or router modes. Any tips? Regards!
0
votes
0answers
16 views

How do I change the deploy directory when using Elastic Beanstalks CLI tool?

When I deploy using the EB CLI tool, with: git aws.push It deploys to /var/app/current How do I change that to deploy to /var/www/html ? Thanks
0
votes
1answer
254 views

Elastix “asterisk -r” command not working “-bash: asterisk: command not found”

I'm having trouble administering the current version of Elastix from the command line on a CentOS 6.3 box. I believe the command I'm look for is asterisk -r however I cannot figure out how to access ...
0
votes
2answers
71 views

Connect two servers with RJ-45 cable and iptables (without switch!)

I have two servers and server_1 is connected to INTERNET port (of server farm) at eth0. No switch. They connected with cable from (server_1)eth1 -> (server_2)eth0 : ifconfig of (server_1): eth0 ...
3
votes
5answers
299 views

del *.txt removes also file.txt_backup

Imagine that we have directory c:\test with following files: first.txt second.doc third.txt fourth.txt_bak I want to remove only txt files, but leave doc and txtwhatever untouched. When I run ...
0
votes
0answers
225 views

ssh reverse tunnel port forwarding connection fails

Updated: diagram http://s22.postimg.org/b2jfgawup/diagram_ssh_tunnel_a1.png I am able to do a reverse port forwarding through the PUTTY GUI with settings similar to below. once I apply this setting, ...
0
votes
1answer
196 views

Replace wildcard certificate on multiple sites at once (using command line) on IIS 7.5

I have 3 websites: aaa.my-domain.com, bbb.my-domain.com and ccc.my-domain.com all using a single wildcard certificate *.my-domain.com on IIS 7.5 Windows Server 2008R2 64-bit. That certificate expires ...
2
votes
1answer
105 views

Cisco 7604 router runs out of memory when loading the IOS image, yet runs a different image with similar reqs

I am experiencing an unusual memory issue with a Cisco 7604 router, specifically the memory on the Supervisor Engine (SUP32-GE-3B) and how it pertains to IOS requirements. I was preparing the router ...
2
votes
1answer
161 views

Network Interface binding order on Windows 8.1

When I query the local interfaces on windows 8 in the command line, I could see the results listed below: C:\> netsh interface show interface Admin State State Type ...
0
votes
0answers
36 views

Odd behaviour with varnishlog and stream redirecting

I wrote a helper to debug varnish installation and have used it on both production and development server. The odd thing is, I encountered different behaviour even though the setup is nearly identical ...
1
vote
2answers
834 views

Windows Server 2012 Can't Delete Folder/Files

I've got a folder with two ISO files in it and I don't need them anymore, however I can't delete the folder! I am an administrator and also the owner of the files. When I try and delete using windows ...
0
votes
3answers
128 views

Tail a file from ssh and mirror to a local file

To tail a file over ssh, I can use ssh -t remotebox "tail -f /var/log/remote.log" However, it is possible to sync the tail with a local file? So a file automatically mirror the update of the tail ...
2
votes
1answer
117 views

Are the xen xe commands available on Oracle VM 3.2?

I recently discovered that Citrix has opensourced XenServer, and that XCP (which we have been using) is more or less now legacy and needless. While looking at rebuilding our systems on XenServer 6.2, ...
0
votes
2answers
721 views

How to run multiple commands with psexec? [duplicate]

I need to run a command to uninstall forefront on some of our workstations and am having a bit of trouble formatting the command. Here's what needs to happen (in multiple commands) xcopy ...
1
vote
1answer
2k views

Fork a process inside a bash shell script

I've a simple shell script like #!/bin/bash sh -c "sleep 60" & exec sleep 120 In using the pstree command, I found something like `-sleep(11681)---sleep(11682) The first sleep is due to the ...
0
votes
0answers
237 views

setting up dell compellent array from command line

So we have a few compellent storage arrays. I have little knowledge of these things but I am improving. so my basic question is I want to configure the server via cli and make some script which does ...
2
votes
2answers
268 views

Batch rename directories with regex via command line on Linux

I have a folder on the server that contains directories that are created daily and are named by date, like so: 07-06-14 08-06-14 09-06-14 etc. At some point I decided that a preferred naming would ...
1
vote
5answers
145 views

How to split the output into different files?

I have a input file like foo xxx yyy zzz foo xxx yyy zzz foo xxx yyy zzz foo xxx yyy zzz bar xxx yyy zzz bar xxx yyy zzz foo xxx yyy zzz .. How to split the input file by line, into foo.txt ...
0
votes
1answer
274 views

Turn Linux into Router (Cisco-like) [closed]

how you doing? I have two Sophos UTM 220 Appliance for study. They have 8 Gigabit Ethernet ports and the hardware is like a common PC (Intel Motherboard, Processor and DDR2 Memory). I would like to ...
1
vote
2answers
78 views

Rsync plugin to many local wordpress installs via script or cli

I am maintaining a large number of wordpress installs on a production server, and we are looking to deploy InfiniteWP for managing these installs. I am looking for a way to script the distribution of ...
0
votes
2answers
1k views

Launch firefox on remote server using SSH with a command line parameter

Is there a way to launch firefox on a remote server using SSH this way ? : ssh username@ip_address [command line] When I run: ssh username@ip_address -Y (or -X) firefox (I want to launch firefox ...
4
votes
3answers
568 views

How can I create a windows shutdown script from powershell/command-line?

I've read the TechNet pages that describe using computer/user startup/shutdown scripts, and that's great, but I'd like to create those scripts via the command-line (and not have to click around in ...
1
vote
3answers
270 views

How to split a file and compress directly?

I've a 100GB file and I want to split into 100 of 1GB file each (by line break) e.g. split --bytes=1024M /path/to/input /path/to/output For the 100 files generated, I want to apply gzip/zip to ...
3
votes
2answers
848 views

SCCM - Where to put the create user step

I've implemented SCCM on our server and am now running task sequences to migrate from Windows XP to Win7. But we also need to be able to add a new local admin, because disable the default ...
22
votes
8answers
5k views

How to hide a password passed as command line argument?

I'm running a software daemon that requires for certain actions to enter a passphrase to unlock some features which looks for example like that: $ darkcoind masternode start <mypassphrase> ...
-2
votes
1answer
191 views

How to install ganglia on vmware esxi 5.5 host? [closed]

I want to install ganglia monitoring tool on esxi host so that i can monitor vm's usage. Can anyone give me a installation guide/link which i can refer/follow to install it? PS: I am total newbie to ...
-3
votes
1answer
116 views

How to copy a file with its parent directories on Windows?

I want to do this on Windows command line: copy foo\bar\baz\myfile.txt c:\destination And end up with: (assuming c:\destination existed but was empty) c:\destination\foo\bar\baz\myfile.txt How ...