ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Topics
    2. Laksh1999
    3. Posts
    L
    • Profile
    • Following 3
    • Followers 1
    • Topics 20
    • Posts 55
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Bash Script with Node JS

      @scottalanmiller said in Bash Script with Node JS:

      first step... are you managing to download the page with CURL?

      I have the ticketing data downloaded from the API through CURL. trying to post the message through the txt file which i have which is giving some errors

      posted in IT Discussion
      L
      Laksh1999
    • RE: Bash Script with Node JS

      @jaredbusch said in Bash Script with Node JS:

      @scottalanmiller said in Bash Script with Node JS:

      first step... are you managing to download the page with CURL?

      zero step - why not use the ticketing system as it should have this functionality natively in the GUI.

      I want the tickets to be automatically updates if the ticket age is above 10 days

      posted in IT Discussion
      L
      Laksh1999
    • Grep help

      I have one text file which needs to grep with ticket number only. I have two kinds of ticket number in it. the ticket starts with V and D.after this numeric values are there for each tickets.how to grep that values only ?

      I have tried this command which does not work

      cat test.txt | grep "D[:digit:]{8}" 
      grep: character class syntax is [[:space:]], not [:space:]
      
      
      
      cat test.txt | grep '\b[a-zA-Z]{1}[0-9]{8}\b'
      
      posted in IT Discussion
      L
      Laksh1999
    • RE: Bash Script with Node JS

      @scottalanmiller I am trying to download the open tickets in the ticketing queue and analyze the same through ticketing api using curl command.

      I am trying from dev desktop through bash

      curl -k "$URL" | iconv -f 8859_1 -t UTF8 | json_xs -t yaml

      When I tried that command i got the error as

      % ./updatedscript.sh
      % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 165 100 165 0 0 311 0 --:--:-- --:--:-- --:--:-- 311 100 640 100 640 0 0 788 0 --:--:-- --:--:-- --:--:-- 788 malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "<!doctype html><html...") at /usr/bin/json_xs line 181, <STDIN> line 1.

      I have installed the perl as well through this command.

      yum install "perl(YAML)" -y

      still facing this issue.

      AIM : Do download the open tickets which is pending in our queue and analyze the data which is above 20 days not updated and then update the ticket to ask whether the issue is resolved for him.

      posted in IT Discussion
      L
      Laksh1999
    • Bash Script with Node JS

      Hi Team,

      I have a ticketing portal which needs to be updated automatically through some template which I have.I am trying this through Bash scripting.I am unable to start itself.Anyone can help me

      Ticketing portal have one have the update tab.In the Update tab :"Hi ,How are you ? " needs to be updated when the script is initiated.Is that possible to do so ?

      posted in IT Discussion
      L
      Laksh1999
    • RE: Bash Script for Stock Market Analysis

      @stacksofplates said in Bash Script for Stock Market Analysis:

      @laksh1999 said in Bash Script for Stock Market Analysis:

      @dafyre said in Bash Script for Stock Market Analysis:

      @laksh1999 said in Bash Script for Stock Market Analysis:

      data=["WIPRO"]

      Should this not simply be

      data="WIPRO" ?

      i can do that,i am trying to download more companies like 50.So need to add through [] only

      In bash arrays are defined with parens, like data=("WIPRO"). Then you would need to loop over the items in the array. Something like

      for i in ${data[@]}; do
        nsecli history --symbol $i.....
      done
      

      This Worked.How to make multiple stock there ?

        GNU nano 5.4                         
      #!/bin/bash
      cd /home/shiva/Documents
      data=('WIPRO')
      start_date=2017-01-01
      end_date=$(date "+%Y-%m-%d")
      
      for i in ${data[@]}; do
         nsecli history --symbol $i -s $start_date -e $end_date -o 01.wipro.csv
      done
      
      
      
      posted in IT Discussion
      L
      Laksh1999
    • RE: Bash Script for Stock Market Analysis

      @dafyre said in Bash Script for Stock Market Analysis:

      @laksh1999 said in Bash Script for Stock Market Analysis:

      data=["WIPRO"]

      Should this not simply be

      data="WIPRO" ?

      i can do that,i am trying to download more companies like 50.So need to add through [] only

      posted in IT Discussion
      L
      Laksh1999
    • Bash Script for Stock Market Analysis

      I am trying to analyse the stock market data through nsepy and this command works if I run this in my Ubuntu terminal with specific stock.Example )

      nsecli history --symbol WIPRO -s $start_date -e $end_date -0 test.csv
      

      When I try to get the data of same through bash script its not working

      #!/bin/bash
      cd /home/shiva/Desktop
      data=["WIPRO"]
      start_date=2017-01-01
      end_date=$(date "+%Y-%m-%d")
      nsecli history --symbol $data -s $start_date -e $end_date -o test.csv
      
      Empty DataFrame
      Columns:[Symbol,Sries]
      Index[]
      

      When checked that csv only the heading is there.Anyone tried this before ?

      posted in IT Discussion
      L
      Laksh1999
    • RE: Email list and Exchange list

      @dbeato said in Email list and Exchange list:

      @laksh1999 Can you explain more what you are looking for? Are you trying to find out which ones are distribution lists?

      I have got 400 list where i needs to find the each user email id and update in a csv or excel file.there are about 13k users are there in 400 list.Any easy way to download that details from Active Directory ?

      posted in IT Discussion
      L
      Laksh1999
    • Email list and Exchange list

      Hi All,

      I have a list of 400 email details which may be email list or exchange list.I need to check which one is email list and which one is exchange list.How to find that details any one have tried this before ?

      posted in IT Discussion
      L
      Laksh1999
    • RE: Slack query

      @laksh1999

      How to create an attachment in this ?
      anyone used builder kit in slack ?

      $Webhook = "https://hooks.slack.com/workflows"
      $ContentType= 'application/json'
      $Body = @"
        {
              "text": "Update your Status + :sunglasses: + $(Get-Date -format g)",
      	
          }
      "@
      Invoke-RestMethod -uri $Webhook -Method Post -body $Body -ContentType $ContentType
      
      posted in IT Discussion
      L
      Laksh1999
    • Slack query

      I am trying to create a slack channels with the outputs in numbers through form in it.

      I am trying to make colors for the outputs.

      Example ) SLA : 100% means the background color of the number needs to be in green background. Any have tried this before ? If yes kindly share the link for the same.

      How to code inside the slack message box and automate the output through webhook ?

      posted in IT Discussion
      L
      Laksh1999
    • Orphoned Email list

      Hi Team,

      Anyone worked on the orphoned email list for the organization ?
      If yes how to find all the email list which is orphaned and how to take the details in .csv if it possible to do ?

      posted in IT Discussion
      L
      Laksh1999
    • RE: I did it

      @mr-jones said in I did it:

      So about a year and a half ago, right before the pandemic hit hard, I was really looking for a job with health benefits. I interviewed with a company for entry-level helpdesk, only to be told that even though I've been a System Admin for 5 years, I wasn't quite qualified to be hired as an entry-level helpdesk because I didn't have a "traditional education". I was told "traditional education teaches discipline", while they overlooked my military background. I could say lots of things about this situation but I'll tell you what I did about it instead. I used my remaining 10 months of G I Bill to take some instructor-led certificate prep.

      Over the last 10 months, I've gotten 8 certificates to include:
      A+
      Networking+
      Server+
      Security+
      And some basic MTA, and Linux certs
      Saturday afternoon wrapped up my last exam (Net+) and I'm due to graduate with a 100% Cumulative GPA, what's considered to be the Dean's List (x2), and every certification knocked out on the 24th.

      Probably looking at finding a DoD job if possible now that I've got the Sec+, with an active Security clearance.

      Anyway, I just wanted to tell someone, thanks for reading.

      do you have dumps or books for the comptia security + exam t ?

      posted in IT Careers
      L
      Laksh1999
    • RE: Outlook 2016 Calendar issue

      The issue resolved by having .ics file from one of the invitee and it got restored in the outlook application in the Windows

      posted in IT Discussion
      L
      Laksh1999
    • Outlook 2016 Calendar issue

      I have 1 user who have initiated the calendar invite for the meeting to 200 people.He have the invite available in his sent items folder but its not reflecting in his calendar.

      I have checked his Calendar for any duplicate items are present in Exchange shell.There is no duplicate items present for his account.

      200 people got the invite in their calendar.What can be tried in this case ?

      The calendar is same in the Outlook application and exchange account as well.

      posted in IT Discussion
      L
      Laksh1999
    • RE: Send CSV file to Slack Channel by bash script through Webhook

      @pete-s said in Send CSV file to Slack Channel by bash script through Webhook:

      @laksh1999 said in Send CSV file to Slack Channel by bash script through Webhook:

      Hi
      I am trying to send the assigned tickets in the queue as .csv file to the slack channel. I am able to download the .csv file in the dev desktop through bash script but unable to send that file to the Slack Channel.

      Anyone have tried this before?

      I have checked this

      https://api.slack.com/methods/files.upload

      I have only Webhook URL no other token is there with me as per the suggestion in the above link.

      You must have a token or some kind of authentication, otherwise anyone would be spam slack with files.

      Also the function you are looking at is not a webhook. Webhooks are triggered by an event. And they cause a http request to be sent.

      I accept with your point the csv file which i download is authenticated with the kerberos only.So is that enough and send the .csv file to the slack channel through the webhook ?

      posted in IT Discussion
      L
      Laksh1999
    • RE: Network Drive issue

      @gjacobse said in Network Drive issue:

      @laksh1999

      Wait,.. you can delete one but not the other? Are they on the same server?

      Example Drive 1 is correct server location user have mapped
      Drive 2 which is incorrect name like test123 which is not there as well.but its showing in the File Explorer and its asking for the password whenever the user opens word or excel file in sharepoint

      posted in IT Discussion
      L
      Laksh1999
    • RE: Network Drive issue

      @jasgot said in Network Drive issue:

      Please post the results of Net Use from a command line.

      Also, please go to your registry and see if the troublesome mapping is listed in:

      HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\
      

      It will look like this: ##server#share

      if it is, delete it.

      Tried this as well.I am unable to find any drives in the Regedit

      I got the output for net use
      There are no entries in the list.

      posted in IT Discussion
      L
      Laksh1999
    • Network Drive issue

      Hi

      I have one issue for the user.There are 2 network drive where 1st drive is valid and 2nd one is invalid.I have tried to remove the 2nd invalid network drive through "net use /delete *".Its not working

      I have deleted the valid network drive and then try to delete that other invalid network path which is mapped which does not help

      Both the links does not help.

      Referred this

      https://answers.microsoft.com/en-us/windows/forum/windows_10-files-winpc/unable-to-disconnect-from-mapped-network-drive/3dd9aba1-e9b3-454f-9872-2521112ddede

      https://community.spiceworks.com/how_to/159210-remove-drive-mapping

      posted in IT Discussion
      L
      Laksh1999
    • 1 / 1